package com.yuju.hotel.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.hotel.dao.IHotelParamDao;
import com.yuju.hotel.dao.entity.HotelParam;
import com.yuju.hotel.dao.entity.HotelParamKey;
import com.yuju.hotel.dao.mapper.HotelParamMapper;
import com.yuju.hotel.model.HotelParamModel;
import com.yuju.persist.base.mapper.BaseMapper;

/**
 * 
 * 类名：HotelParamDaoImpl  <br />
 *
 * 功能：酒店参数
 *
 * @author : xuehj <br />
 * @Date : 2018年1月30日 下午5:53:13  <br />
 * @version : 1.1 <br />
 */
@Repository
public class HotelParamDaoImpl extends AbstractBaseDao<HotelParamModel, HotelParam, HotelParamKey> implements IHotelParamDao {
	@Autowired
	private HotelParamMapper hotelParamMapper;
	
	@Override
	public BaseMapper<HotelParam, HotelParamKey> getMapper() {
		return hotelParamMapper;
	}

	@Override
	public int initHotelParam(String groupId, String hotelId) {
		// TODO Auto-generated method stub
		Map<Object, Object> map = new HashMap<Object, Object>();
		map.put("groupId", groupId);
		map.put("hotelId", hotelId);
		return hotelParamMapper.initHotelParam(map);
	}
	
}
